<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button id="app">click</button>
</body>
<script>
    //当前代码被执行或一次  那么Storage就会永远存储到对应的内容
    var obj = {name:"damu"}
    localStorage.setItem("name",JSON.stringify(obj))

    /*app.addEventListener("click",()=>{
        localStorage.removeItem("name")
    })*/
</script>
</html>